﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.DataFormats;

namespace LibraryManagementSystem
{
    public partial class FormUser : Form
    {
        public FormUser()
        {
            InitializeComponent();
        }

        private void 安全退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DialogResult.Yes == MessageBox.Show("确定退出吗？", "消息", MessageBoxButtons.YesNo, MessageBoxIcon.Question))
            {
                this.Close();
            }
        }

        private void 注销用户ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //删除数据库中账号信息
            if (DialogResult.Yes == MessageBox.Show("确定注销该账号吗？", "消息", MessageBoxButtons.YesNo, MessageBoxIcon.Question))
            {
                //注销操作

            }
        }

        private void 我要借书ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BookBorrow bookborrow = new BookBorrow();

            bookborrow.Show();
        }
    }
}
